package com.kkb.cubemall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kkb.cubemall.common.utils.PageUtils;
import com.kkb.cubemall.product.entity.AttrEntity;
import com.kkb.cubemall.product.vo.AttrGroupRelationVo;
import com.kkb.cubemall.product.vo.AttrRespVo;
import com.kkb.cubemall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性表
 *
 * @author LiJun
 * @email 978988415@qq.com
 * @date 2021-05-18 19:42:38
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params, String type, Integer catId);

    void saveAttr(AttrVo attrVo);

    void updateAttr(AttrVo attrVo);

    AttrRespVo getAttrInfo(Long id);

    List<AttrEntity> getAttrRelation(Long attrGroupId);

    PageUtils getNoAttrRelation(Map<String, Object> params, Long attrGroupId);

    void deleteRelation(AttrGroupRelationVo[] attrGroupRelationVos);

    void addRelation(AttrGroupRelationVo[] attrGroupRelationVos);
}

